#ifndef _AC_CALYPSO_DATABASEPAGE
#define _AC_CALYPSO_DATABASEPAGE

#include "MainWindow.h"

class DatabasePage : public QWidget {
	Q_OBJECT

	Ui::MainWindowClass * mUi;
	bool mItemDb;

	QWidget * mPopupImage;

protected:
	void keyPressEvent(QKeyEvent *);
	void paintEvent(QPaintEvent *);
	void showEvent(QShowEvent *);
	void hideEvent(QHideEvent *);

public:
	DatabasePage();
	~DatabasePage();

	void setUi(Ui::MainWindowClass * ui);

public slots:
	void changeDB();
	void itemClicked(const QModelIndex& index);
	void popupHided();
};

#endif